﻿using System;
using OdsServer.Common.DataTransfer;
using OdsServer.Common.Packet;

namespace OdsServer.DataTransfer.Marshalling
{
    internal class MarshalTransfer : IDataPublisherAgent, IListenerHost
    {
        public void StartAgent()
        {
            throw new NotImplementedException();
        }

        public void StopAgent()
        {
            throw new NotImplementedException();
        }

        public void Publish(object sender, IBasePacket data)
        {
            throw new NotImplementedException();
        }

        public event DataPublisherFaultDelegate OnFault;

        public void AddListener(object listener)
        {
            throw new NotImplementedException();
        }

        public void RemoveListener(object listener)
        {
            throw new NotImplementedException();
        }

        public void ReportFault(DataTransferException e)
        {
            if (this.OnFault != null)
                this.OnFault(this, e);
        }

        public bool IsActive
        {
            get { throw new NotImplementedException(); }
        }
    }
}
